import { ReqSourceEnums } from '../../constants/enums'
import { DEV_TYPE_OPTIONS, DEV_TYPE_VALUES } from '../constants'

export const REQ_SOURCE_OPTIONS = ReqSourceEnums.options // 需求来源下拉options

export const FORM_ITEMS = [
  {
    prop: 'source',
    label: '需求来源',
    type: 'select',
    options: REQ_SOURCE_OPTIONS
  },
  {
    prop: 'devType',
    label: '开发类型',
    type: 'select',
    options: DEV_TYPE_OPTIONS.filter(item => item.value != DEV_TYPE_VALUES.Sku)
  },
  {
    prop: 'industryNo',
    label: '行业',
    type: 'select',
    options: [],
    allowCreate: true,
    filterable: true
  }
]

export const TABLE_COLUMNS = [
  {
    title: '品类编码',
    key: 'categoryNo'
  },
  {
    title: '品类树',
    key: 'categoryPath'
  },
  {
    title: '档次',
    key: 'gradeStr'
  },
  {
    title: '品牌',
    key: 'brandName'
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '预计销量(万元)',
    key: 'expectedSales'
  },
  {
    title: '备注',
    key: 'remark'
  },
]
